package com.ccsu.joysport.dto;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class ClubApplicationResponse {
    private String studentId;
    private String clubId;
    private String status;
    private String applicationTime; // 格式化后的时间
    private String reason;
    private String reviewRemark;

    public ClubApplicationResponse(String studentId, String clubId, String status, Timestamp applicationTime, String reason, String reviewRemark) {
        this.studentId = studentId;
        this.clubId = clubId;
        this.status = status;
        // 格式化时间
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.applicationTime = dateFormat.format(applicationTime);
        this.reason = reason;
        this.reviewRemark = reviewRemark;
    }

    // Getters and setters
    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getClubId() {
        return clubId;
    }

    public void setClubId(String clubId) {
        this.clubId = clubId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getApplicationTime() {
        return applicationTime;
    }

    public void setApplicationTime(String applicationTimeFormatted) {
        this.applicationTime = applicationTimeFormatted;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getReviewRemark() {
        return reviewRemark;
    }

    public void setReviewRemark(String reviewRemark) {
        this.reviewRemark = reviewRemark;
    }
}

